import React from 'react'
import Cell from './cell'

export default class Row extends React.Component{
    render() {
        const {data,col,coord1} = this.props
        // console.log(this.props)
        return (
            <div className="row">
                {
                    //循环单元格
                    data.map((item,index) =>(<Cell col={index} row={col} data={item} coord2={coord1}/>)
                    )
                }


            </div>
        )
    }
}